//package com.benmei.ntlive.server.netty.wss;
//
//import io.netty.bootstrap.ServerBootstrap;
//import io.netty.channel.EventLoopGroup;
//import io.netty.channel.nio.NioEventLoopGroup;
//import io.netty.channel.socket.nio.NioServerSocketChannel;
//import org.springframework.beans.factory.annotation.Autowired;
//import org.springframework.beans.factory.annotation.Qualifier;
//import org.springframework.stereotype.Component;
//
//import javax.annotation.Resource;
//
///**
// * Create by chenhong on 2018/10/26 14:46
// * Description : 加密版WebSocket
// */
//@Component
//public class SSLWebSocketServer{
////    @Autowired
////    @Qualifier("sslWebSocketPort")
////    private int port;
//
//    @Resource(name="sslWebSocketServerChannelInitializer")
//    private WebSocketServerChannelInitializer webSocketServerChannelInitializer;
//
//    public void start() {
//        EventLoopGroup bossGroup =new NioEventLoopGroup();
//        EventLoopGroup workerGroup=new NioEventLoopGroup();
//        ServerBootstrap bootstrap=new ServerBootstrap();
//        bootstrap.group(bossGroup,workerGroup)
//                .channel(NioServerSocketChannel.class)
//                .childHandler(webSocketServerChannelInitializer);
//        try {
//            bootstrap.bind(8815).sync().channel().closeFuture().sync();
//        } catch (InterruptedException e) {
//            e.printStackTrace();
//        }finally {
//            bossGroup.shutdownGracefully();
//            workerGroup.shutdownGracefully();
//        }
//    }
//}
